function showAddAddressForm() {
    document.getElementById('add-address-form').style.display = 'block';
}

// 示例填充数据
document.addEventListener('DOMContentLoaded', () => {
    // 收货地址列表
    const addressList = document.getElementById('address-list');
    fetch('/user/get-addresses')
        .then(response => response.json())
        .then(addresses => {
            addresses.forEach(addr => {
                const li = document.createElement('li');
                li.textContent = addr.address;
                addressList.appendChild(li);
            });
        });
});